package com.example.search.service;
import com.alibaba.boot.dubbo.annotation.DubboConsumer;
import com.example.service.RpcDoctorSearchService;
import com.example.vo.SearchDoctorReturnVo;
import com.example.vo.SearchDoctorVO;
import org.springframework.stereotype.Component;

/**
 * Created by LENOVO on 2018/9/25.
 */
@Component
public class DoctorSearchServiceImpl implements DoctorSearchService {


    @DubboConsumer
    private RpcDoctorSearchService rpcDoctorSearchService;
    @Override
    public SearchDoctorReturnVo searchDoctorList(SearchDoctorVO searchDoctorVO) throws Exception {

        return rpcDoctorSearchService.getDoctorList(searchDoctorVO);
    }
}
